home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Interfaces / Universal Interfaces 2.0a3 / Universal AIncludes / Errors.a < prev    next >
Encoding:
Text File  |  1994-11-11  |  52.3 KB  |  1,015 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Errors.a
  3. ;
  4. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  5. ;                All rights reserved.
  6. ;
  7. ;    Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8. ;
  9. ;    Bugs?:        If you find a problem with this file, send the file and version
  10. ;                information (from above) and the problem description to:
  11. ;
  12. ;                    Internet:    apple.bugs@applelink.apple.com
  13. ;                    AppleLink:    APPLE.BUGS
  14. ;
  15. ;
  16.  
  17.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  18. __ERRORS__ SET 1
  19.  
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.  
  25. paramErr                        EQU        -50                    ;error in user parameter list
  26. noHardwareErr                    EQU        -200                ;Sound Manager Error Returns
  27. notEnoughHardwareErr            EQU        -201                ;Sound Manager Error Returns
  28. userCanceledErr                    EQU        -128
  29. qErr                            EQU        -1                    ;queue element not found during deletion
  30. vTypErr                            EQU        -2                    ;invalid queue element
  31. corErr                            EQU        -3                    ;core routine number out of range
  32. unimpErr                        EQU        -4                    ;unimplemented core routine
  33. SlpTypeErr                        EQU        -5                    ;invalid queue element
  34. seNoDB                            EQU        -8                    ;no debugger installed to handle debugger command
  35. controlErr                        EQU        -17                    ;I/O System Errors
  36. statusErr                        EQU        -18                    ;I/O System Errors
  37. readErr                            EQU        -19                    ;I/O System Errors
  38. writErr                            EQU        -20                    ;I/O System Errors
  39. badUnitErr                        EQU        -21                    ;I/O System Errors
  40. unitEmptyErr                    EQU        -22                    ;I/O System Errors
  41. openErr                            EQU        -23                    ;I/O System Errors
  42. closErr                            EQU        -24                    ;I/O System Errors
  43. dRemovErr                        EQU        -25                    ;tried to remove an open driver
  44. dInstErr                        EQU        -26                    ;DrvrInstall couldn't find driver in resources
  45.  
  46. abortErr                        EQU        -27                    ;IO call aborted by KillIO
  47. iIOAbortErr                        EQU        -27                    ;IO abort error (Printing Manager)
  48. notOpenErr                        EQU        -28                    ;Couldn't rd/wr/ctl/sts cause driver not opened
  49. unitTblFullErr                    EQU        -29                    ;unit table has no more entries
  50. dceExtErr                        EQU        -30                    ;dce extension error
  51. slotNumErr                        EQU        -360                ;invalid slot # error
  52. gcrOnMFMErr                        EQU        -400                ;gcr format on high density media error
  53. dirFulErr                        EQU        -33                    ;Directory full
  54. dskFulErr                        EQU        -34                    ;disk full
  55. nsvErr                            EQU        -35                    ;no such volume
  56. ioErr                            EQU        -36                    ;I/O error (bummers)
  57. bdNamErr                        EQU        -37                    ;there may be no bad names in the final system!
  58. fnOpnErr                        EQU        -38                    ;File not open
  59. eofErr                            EQU        -39                    ;End of file
  60. posErr                            EQU        -40                    ;tried to position to before start of file (r/w)
  61. mFulErr                            EQU        -41                    ;memory full (open) or file won't fit (load)
  62. tmfoErr                            EQU        -42                    ;too many files open
  63. fnfErr                            EQU        -43                    ;File not found
  64. wPrErr                            EQU        -44                    ;diskette is write protected.
  65. fLckdErr                        EQU        -45                    ;file is locked
  66.  
  67. vLckdErr                        EQU        -46                    ;volume is locked
  68. fBsyErr                            EQU        -47                    ;File is busy (delete)
  69. dupFNErr                        EQU        -48                    ;duplicate filename (rename)
  70. opWrErr                            EQU        -49                    ;file already open with with write permission
  71. rfNumErr                        EQU        -51                    ;refnum error
  72. gfpErr                            EQU        -52                    ;get file position error
  73. volOffLinErr                    EQU        -53                    ;volume not on line error (was Ejected)
  74. permErr                            EQU        -54                    ;permissions error (on file open)
  75. volOnLinErr                        EQU        -55                    ;drive volume already on-line at MountVol
  76. nsDrvErr                        EQU        -56                    ;no such drive (tried to mount a bad drive num)
  77. noMacDskErr                        EQU        -57                    ;not a mac diskette (sig bytes are wrong)
  78. extFSErr                        EQU        -58                    ;volume in question belongs to an external fs
  79. fsRnErr                            EQU        -59                    ;file system internal error:during rename the old entry was deleted but could not be restored.
  80. badMDBErr                        EQU        -60                    ;bad master directory block
  81. wrPermErr                        EQU        -61                    ;write permissions error
  82. dirNFErr                        EQU        -120                ;Directory not found
  83. tmwdoErr                        EQU        -121                ;No free WDCB available
  84. badMovErr                        EQU        -122                ;Move into offspring error
  85. wrgVolTypErr                    EQU        -123                ;Wrong volume type error [operation not supported for MFS]
  86. volGoneErr                        EQU        -124                ;Server volume has been disconnected.
  87.  
  88. fidNotFound                        EQU        -1300                ;no file thread exists.
  89. fidExists                        EQU        -1301                ;file id already exists
  90. notAFileErr                        EQU        -1302                ;directory specified
  91. diffVolErr                        EQU        -1303                ;files on different volumes
  92. catChangedErr                    EQU        -1304                ;the catalog has been modified
  93. desktopDamagedErr                EQU        -1305                ;desktop database files are corrupted
  94. sameFileErr                        EQU        -1306                ;can't exchange a file with itself
  95. badFidErr                        EQU        -1307                ;file id is dangling or doesn't match with the file number
  96. envNotPresent                    EQU        -5500                ;returned by glue.
  97. envBadVers                        EQU        -5501                ;Version non-positive
  98. envVersTooBig                    EQU        -5502                ;Version bigger than call can handle
  99. fontDecError                    EQU        -64                    ;error during font declaration
  100. fontNotDeclared                    EQU        -65                    ;font not declared
  101. fontSubErr                        EQU        -66                    ;font substitution occured
  102. fontNotOutlineErr                EQU        -32615                ;bitmap font passed to routine that does outlines only
  103. firstDskErr                        EQU        -84                    ;I/O System Errors
  104. lastDskErr                        EQU        -64                    ;I/O System Errors
  105. noDriveErr                        EQU        -64                    ;drive not installed
  106. offLinErr                        EQU        -65                    ;r/w requested for an off-line drive
  107. noNybErr                        EQU        -66                    ;couldn't find 5 nybbles in 200 tries
  108.  
  109. noAdrMkErr                        EQU        -67                    ;couldn't find valid addr mark
  110. dataVerErr                        EQU        -68                    ;read verify compare failed
  111. badCksmErr                        EQU        -69                    ;addr mark checksum didn't check
  112. badBtSlpErr                        EQU        -70                    ;bad addr mark bit slip nibbles
  113. noDtaMkErr                        EQU        -71                    ;couldn't find a data mark header
  114. badDCksum                        EQU        -72                    ;bad data mark checksum
  115. badDBtSlp                        EQU        -73                    ;bad data mark bit slip nibbles
  116. wrUnderrun                        EQU        -74                    ;write underrun occurred
  117. cantStepErr                        EQU        -75                    ;step handshake failed
  118. tk0BadErr                        EQU        -76                    ;track 0 detect doesn't change
  119. initIWMErr                        EQU        -77                    ;unable to initialize IWM
  120. twoSideErr                        EQU        -78                    ;tried to read 2nd side on a 1-sided drive
  121. spdAdjErr                        EQU        -79                    ;unable to correctly adjust disk speed
  122. seekErr                            EQU        -80                    ;track number wrong on address mark
  123. sectNFErr                        EQU        -81                    ;sector number never found on a track
  124. fmt1Err                            EQU        -82                    ;can't find sector 0 after track format
  125. fmt2Err                            EQU        -83                    ;can't get enough sync
  126. verErr                            EQU        -84                    ;track failed to verify
  127. clkRdErr                        EQU        -85                    ;unable to read same clock value twice
  128. clkWrErr                        EQU        -86                    ;time written did not verify
  129.  
  130. prWrErr                            EQU        -87                    ;parameter ram written didn't read-verify
  131. prInitErr                        EQU        -88                    ;InitUtil found the parameter ram uninitialized
  132. rcvrErr                            EQU        -89                    ;SCC receiver error (framing; parity; OR)
  133. breakRecd                        EQU        -90                    ;Break received (SCC)
  134. ;Power Manager Errors
  135. pmBusyErr                        EQU        -13000                ;Power Mgr never ready to start handshake
  136. pmReplyTOErr                    EQU        -13001                ;Timed out waiting for reply
  137. pmSendStartErr                    EQU        -13002                ;during send, pmgr did not start hs
  138. pmSendEndErr                    EQU        -13003                ;during send, pmgr did not finish hs
  139. pmRecvStartErr                    EQU        -13004                ;during receive, pmgr did not start hs
  140. pmRecvEndErr                    EQU        -13005                ;during receive, pmgr did not finish hs configured for this connection
  141. ; Printing Errors 
  142. iMemFullErr                        EQU        -108
  143. iIOAbort                        EQU        -27
  144. ;Scrap Manager errors
  145. noScrapErr                        EQU        -100                ;No scrap exists error
  146. noTypeErr                        EQU        -102                ;No object of that type in scrap
  147. memROZWarn                        EQU        -99                    ;soft error in ROZ
  148. memROZError                        EQU        -99                    ;hard error in ROZ
  149. memROZErr                        EQU        -99                    ;hard error in ROZ
  150. memFullErr                        EQU        -108                ;Not enough room in heap zone
  151. nilHandleErr                    EQU        -109                ;Master Pointer was NIL in HandleZone or other
  152. memWZErr                        EQU        -111                ;WhichZone failed (applied to free block)
  153. memPurErr                        EQU        -112                ;trying to purge a locked or non-purgeable block
  154. memAdrErr                        EQU        -110                ;address was odd; or out of range
  155.  
  156. memAZErr                        EQU        -113                ;Address in zone check failed
  157. memPCErr                        EQU        -114                ;Pointer Check failed
  158. memBCErr                        EQU        -115                ;Block Check failed
  159. memSCErr                        EQU        -116                ;Size Check failed
  160. memLockedErr                    EQU        -117                ;trying to move a locked block (MoveHHi)
  161. resourceInMemory                EQU        -188                ;Resource already in memory
  162. writingPastEnd                    EQU        -189                ;Writing past end of file
  163. inputOutOfBounds                EQU        -190                ;Offset of Count out of bounds
  164. resNotFound                        EQU        -192                ;Resource not found
  165. resFNotFound                    EQU        -193                ;Resource file not found
  166. addResFailed                    EQU        -194                ;AddResource failed
  167. addRefFailed                    EQU        -195                ;AddReference failed
  168. rmvResFailed                    EQU        -196                ;RmveResource failed
  169. rmvRefFailed                    EQU        -197                ;RmveReference failed
  170. resAttrErr                        EQU        -198                ;attribute inconsistent with operation
  171. mapReadErr                        EQU        -199                ;map inconsistent with operation
  172. CantDecompress                    EQU        -186                ;resource bent ("the bends") - can't decompress a compressed resource
  173. badExtResource                    EQU        -185                ;extended resource has a bad format.
  174. evtNotEnb                        EQU        1                    ;event not enabled at PostEvent
  175. noMemForPictPlaybackErr            EQU        -145
  176. rgnOverflowErr                    EQU        -147
  177. rgnTooBigError                    EQU        -147
  178. pixMapTooDeepErr                EQU        -148
  179. insufficientStackErr            EQU        -149
  180. nsStackErr                        EQU        -149
  181.  
  182. ; OffScreen QuickDraw Errors 
  183. cMatchErr                        EQU        -150                ;Color2Index failed to find an index
  184. cTempMemErr                        EQU        -151                ;failed to allocate memory for temporary structures
  185. cNoMemErr                        EQU        -152                ;failed to allocate memory for structure
  186. cRangeErr                        EQU        -153                ;range error on colorTable request
  187. cProtectErr                        EQU        -154                ;colorTable entry protection violation
  188. cDevErr                            EQU        -155                ;invalid type of graphics device
  189. cResErr                            EQU        -156                ;invalid resolution for MakeITable
  190. cDepthErr                        EQU        -157                ;invalid pixel depth 
  191. rgnTooBigErr                    EQU        -500
  192. updPixMemErr                    EQU        -125                ;insufficient memory to update a pixmap
  193. pictInfoVersionErr                EQU        -11000                ;wrong version of the PictInfo structure
  194. pictInfoIDErr                    EQU        -11001                ;the internal consistancy check for the PictInfoID is wrong
  195. pictInfoVerbErr                    EQU        -11002                ;the passed verb was invalid
  196. cantLoadPickMethodErr            EQU        -11003                ;unable to load the custom pick proc
  197. colorsRequestedErr                EQU        -11004                ;the number of colors requested was illegal
  198. pictureDataErr                    EQU        -11005                ;the picture data was invalid
  199. ;Sound Manager errors
  200. noHardware                        EQU        noHardwareErr        ;obsolete spelling
  201. notEnoughHardware                EQU        notEnoughHardwareErr ;obsolete spelling
  202. queueFull                        EQU        -203                ;Sound Manager Error Returns
  203. resProblem                        EQU        -204                ;Sound Manager Error Returns
  204. badChannel                        EQU        -205                ;Sound Manager Error Returns
  205.  
  206. badFormat                        EQU        -206                ;Sound Manager Error Returns
  207. notEnoughBufferSpace            EQU        -207                ;could not allocate enough memory
  208. badFileFormat                    EQU        -208                ;was not type AIFF or was of bad format,corrupt
  209. channelBusy                        EQU        -209                ;the Channel is being used for a PFD already
  210. buffersTooSmall                    EQU        -210                ;can not operate in the memory allowed
  211. channelNotBusy                    EQU        -211
  212. noMoreRealTime                    EQU        -212                ;not enough CPU cycles left to add another task
  213. siNoSoundInHardware                EQU        -220                ;no Sound Input hardware
  214. siBadSoundInDevice                EQU        -221                ;invalid index passed to SoundInGetIndexedDevice
  215. siNoBufferSpecified                EQU        -222                ;returned by synchronous SPBRecord if nil buffer passed
  216. siInvalidCompression            EQU        -223                ;invalid compression type
  217. siHardDriveTooSlow                EQU        -224                ;hard drive too slow to record to disk
  218. siInvalidSampleRate                EQU        -225                ;invalid sample rate
  219. siInvalidSampleSize                EQU        -226                ;invalid sample size
  220. siDeviceBusyErr                    EQU        -227                ;input device already in use
  221. siBadDeviceName                    EQU        -228                ;input device could not be opened
  222. siBadRefNum                        EQU        -229                ;invalid input device reference number
  223. siInputDeviceErr                EQU        -230                ;input device hardware failure
  224. siUnknownInfoType                EQU        -231                ;invalid info type selector (returned by driver)
  225. siUnknownQuality                EQU        -232                ;invalid quality selector (returned by driver)
  226.  
  227. ;Speech Manager errors
  228. noSynthFound                    EQU        -240
  229. synthOpenFailed                    EQU        -241
  230. synthNotReady                    EQU        -242
  231. bufTooSmall                        EQU        -243
  232. voiceNotFound                    EQU        -244
  233. incompatibleVoice                EQU        -245
  234. badDictFormat                    EQU        -246
  235. badInputText                    EQU        -247
  236.  
  237. ; Midi Manager Errors: 
  238. midiNoClientErr                    EQU        -250                ;no client with that ID found
  239. midiNoPortErr                    EQU        -251                ;no port with that ID found
  240. midiTooManyPortsErr                EQU        -252                ;too many ports already installed in the system
  241. midiTooManyConsErr                EQU        -253                ;too many connections made
  242. midiVConnectErr                    EQU        -254                ;pending virtual connection created
  243. midiVConnectMade                EQU        -255                ;pending virtual connection resolved
  244. midiVConnectRmvd                EQU        -256                ;pending virtual connection removed
  245. midiNoConErr                    EQU        -257                ;no connection exists between specified ports
  246. midiWriteErr                    EQU        -258                ;MIDIWritePacket couldn't write to all connected ports
  247. midiNameLenErr                    EQU        -259                ;name supplied is longer than 31 characters
  248. midiDupIDErr                    EQU        -260                ;duplicate client ID
  249. midiInvalidCmdErr                EQU        -261                ;command not supported for port type
  250.  
  251. ;Notification Manager errors
  252. nmTypErr                        EQU        -299                ;wrong queue type
  253. siInitSDTblErr                    EQU        1                    ;slot int dispatch table could not be initialized.
  254. siInitVBLQsErr                    EQU        2                    ;VBLqueues for all slots could not be initialized.
  255. siInitSPTblErr                    EQU        3                    ;slot priority table could not be initialized.
  256. sdmJTInitErr                    EQU        10                    ;SDM Jump Table could not be initialized.
  257. sdmInitErr                        EQU        11                    ;SDM could not be initialized.
  258. sdmSRTInitErr                    EQU        12                    ;Slot Resource Table could not be initialized.
  259. sdmPRAMInitErr                    EQU        13                    ;Slot PRAM could not be initialized.
  260. sdmPriInitErr                    EQU        14                    ;Cards could not be initialized.
  261. smSDMInitErr                    EQU        -290                ;Error; SDM could not be initialized.
  262. smSRTInitErr                    EQU        -291                ;Error; Slot Resource Table could not be initialized.
  263. smPRAMInitErr                    EQU        -292                ;Error; Slot Resource Table could not be initialized.
  264. smPriInitErr                    EQU        -293                ;Error; Cards could not be initialized.
  265. smEmptySlot                        EQU        -300                ;No card in slot
  266. smCRCFail                        EQU        -301                ;CRC check failed for declaration data
  267. smFormatErr                        EQU        -302                ;FHeader Format is not Apple's
  268. smRevisionErr                    EQU        -303                ;Wrong revison level
  269. smNoDir                            EQU        -304                ;Directory offset is Nil
  270. smDisabledSlot                    EQU        -305                ;This slot is disabled (-305 use to be smLWTstBad)
  271. smNosInfoArray                    EQU        -306                ;No sInfoArray. Memory Mgr error.
  272.  
  273. ;Dictionary Manager errors
  274. notBTree                        EQU        -410                ;The file is not a dictionary.
  275. btNoSpace                        EQU        -413                ;Can't allocate disk space.
  276. btDupRecErr                        EQU        -414                ;Record already exists.
  277. btRecNotFnd                        EQU        -415                ;Record cannot be found.
  278. btKeyLenErr                        EQU        -416                ;Maximum key length is too long or equal to zero.
  279. btKeyAttrErr                    EQU        -417                ;There is no such a key attribute.
  280. unknownInsertModeErr            EQU        -20000                ;There is no such an insert mode.
  281. recordDataTooBigErr                EQU        -20001                ;The record data is bigger than buffer size (1024 bytes).
  282. invalidIndexErr                    EQU        -20002                ;The recordIndex parameter is not valid.
  283.  
  284. smResrvErr                        EQU        -307                ;Fatal reserved error. Resreved field <> 0.
  285. smUnExBusErr                    EQU        -308                ;Unexpected BusError
  286. smBLFieldBad                    EQU        -309                ;ByteLanes field was bad.
  287. smFHBlockRdErr                    EQU        -310                ;Error occured during _sGetFHeader.
  288. smFHBlkDispErr                    EQU        -311                ;Error occured during _sDisposePtr (Dispose of FHeader block).
  289. smDisposePErr                    EQU        -312                ;_DisposePointer error
  290. smNoBoardSRsrc                    EQU        -313                ;No Board sResource.
  291. smGetPRErr                        EQU        -314                ;Error occured during _sGetPRAMRec (See SIMStatus).
  292. smNoBoardId                        EQU        -315                ;No Board Id.
  293. smInitStatVErr                    EQU        -316                ;The InitStatusV field was negative after primary or secondary init.
  294. smInitTblVErr                    EQU        -317                ;An error occured while trying to initialize the Slot Resource Table.
  295. smNoJmpTbl                        EQU        -318                ;SDM jump table could not be created.
  296. smBadBoardId                    EQU        -319                ;BoardId was wrong; re-init the PRAM record.
  297. smBusErrTO                        EQU        -320                ;BusError time out.
  298. ;The following errors are for primary or secondary init code.  The errors are logged in the
  299. ;vendor status field of the sInfo record.  Normally the vendor error is not Apple's concern,
  300. ;but a special error is needed to patch secondary inits.
  301. svTempDisable                    EQU        -32768                ;Temporarily disable card but run primary init.
  302. svDisabled                        EQU        -32640                ;Reserve range -32640 to -32768 for Apple temp disables.
  303. smBadRefId                        EQU        -330                ;Reference Id not found in List
  304. smBadsList                        EQU        -331                ;Bad sList: Id1 < Id2 < Id3 ...format is not followed.
  305. smReservedErr                    EQU        -332                ;Reserved field not zero
  306. smCodeRevErr                    EQU        -333                ;Code revision is wrong
  307.  
  308. smCPUErr                        EQU        -334                ;Code revision is wrong
  309. smsPointerNil                    EQU        -335                ;LPointer is nil From sOffsetData. If this error occurs; check sInfo rec for more information.
  310. smNilsBlockErr                    EQU        -336                ;Nil sBlock error (Dont allocate and try to use a nil sBlock)
  311. smSlotOOBErr                    EQU        -337                ;Slot out of bounds error
  312. smSelOOBErr                        EQU        -338                ;Selector out of bounds error
  313. smNewPErr                        EQU        -339                ;_NewPtr error
  314. smBlkMoveErr                    EQU        -340                ;_BlockMove error
  315. smCkStatusErr                    EQU        -341                ;Status of slot = fail.
  316. smGetDrvrNamErr                    EQU        -342                ;Error occured during _sGetDrvrName.
  317. smDisDrvrNamErr                    EQU        -343                ;Error occured during _sDisDrvrName.
  318. smNoMoresRsrcs                    EQU        -344                ;No more sResources
  319. smsGetDrvrErr                    EQU        -345                ;Error occurred during _sGetDriver.
  320. smBadsPtrErr                    EQU        -346                ;Bad pointer was passed to sCalcsPointer
  321. smByteLanesErr                    EQU        -347                ;NumByteLanes was determined to be zero.
  322. smOffsetErr                        EQU        -348                ;Offset was too big (temporary error
  323. smNoGoodOpens                    EQU        -349                ;No opens were successfull in the loop.
  324. smSRTOvrFlErr                    EQU        -350                ;SRT over flow.
  325. smRecNotFnd                        EQU        -351                ;Record not found in the SRT.
  326. editionMgrInitErr                EQU        -450                ;edition manager not inited by this app
  327. badSectionErr                    EQU        -451                ;not a valid SectionRecord
  328.  
  329. notRegisteredSectionErr            EQU        -452                ;not a registered SectionRecord
  330. badEditionFileErr                EQU        -453                ;edition file is corrupt
  331. badSubPartErr                    EQU        -454                ;can not use sub parts in this release
  332. multiplePublisherWrn            EQU        -460                ;A Publisher is already registered for that container
  333. containerNotFoundWrn            EQU        -461                ;could not find editionContainer at this time
  334. containerAlreadyOpenWrn            EQU        -462                ;container already opened by this section
  335. notThePublisherWrn                EQU        -463                ;not the first registered publisher for that container
  336. teScrapSizeErr                    EQU        -501                ;scrap item too big for text edit record
  337. hwParamErr                        EQU        -502                ;bad selector for _HWPriv
  338. ;Process Manager errors
  339. procNotFound                    EQU        -600                ;no eligible process with specified descriptor
  340. memFragErr                        EQU        -601                ;not enough room to launch app w/special requirements
  341. appModeErr                        EQU        -602                ;memory mode is 32-bit, but app not 32-bit clean
  342. protocolErr                        EQU        -603                ;app made module calls in improper order
  343. hardwareConfigErr                EQU        -604                ;hardware configuration not correct for call
  344. appMemFullErr                    EQU        -605                ;application SIZE not big enough for launch
  345. appIsDaemon                        EQU        -606                ;app is BG-only, and launch flags disallow this
  346. bufferIsSmall                    EQU        -607                ;error returns from Post and Accept 
  347. noOutstandingHLE                EQU        -608
  348. connectionInvalid                EQU        -609
  349. noUserInteractionAllowed        EQU        -610                ; no user interaction allowed 
  350.  
  351. ; Thread Manager Error Codes 
  352. threadTooManyReqsErr            EQU        -617
  353. threadNotFoundErr                EQU        -618
  354. threadProtocolErr                EQU        -619
  355.  
  356. ;MemoryDispatch errors
  357. notEnoughMemoryErr                EQU        -620                ;insufficient physical memory
  358. notHeldErr                        EQU        -621                ;specified range of memory is not held
  359. cannotMakeContiguousErr            EQU        -622                ;cannot make specified range contiguous
  360. notLockedErr                    EQU        -623                ;specified range of memory is not locked
  361.  
  362. interruptsMaskedErr                EQU        -624                ;don’t call with interrupts masked
  363. cannotDeferErr                    EQU        -625                ;unable to defer additional functions
  364. ddpSktErr                        EQU        -91                    ;error in soket number
  365. ddpLenErr                        EQU        -92                    ;data length too big
  366. noBridgeErr                        EQU        -93                    ;no network bridge for non-local send
  367. lapProtErr                        EQU        -94                    ;error in attaching/detaching protocol
  368. excessCollsns                    EQU        -95                    ;excessive collisions on write
  369. portInUse                        EQU        -97                    ;driver Open error code (port is in use)
  370. portNotCf                        EQU        -98                    ;driver Open error code (parameter RAM not configured for this connection)
  371.  
  372. ;Help Mgr error range: -850 to -874
  373. hmHelpDisabled                    EQU        -850                ; Show Balloons mode was off, call to routine ignored 
  374. hmBalloonAborted                EQU        -853                ; Returned if mouse was moving or mouse wasn't in window port rect 
  375. hmSameAsLastBalloon                EQU        -854                ; Returned from HMShowMenuBalloon if menu & item is same as last time 
  376. hmHelpManagerNotInited            EQU        -855                ; Returned from HMGetHelpMenuHandle if help menu not setup 
  377. hmSkippedBalloon                EQU        -857                ; Returned from calls if helpmsg specified a skip balloon 
  378. hmWrongVersion                    EQU        -858                ; Returned if help mgr resource was the wrong version 
  379. hmUnknownHelpType                EQU        -859                ; Returned if help msg record contained a bad type 
  380. hmOperationUnsupported            EQU        -861                ; Returned from HMShowBalloon call if bad method passed to routine 
  381. hmNoBalloonUp                    EQU        -862                ; Returned from HMRemoveBalloon if no balloon was visible when call was made 
  382. hmCloseViewActive                EQU        -863                ; Returned from HMRemoveBalloon if CloseView was active 
  383.  
  384. nbpBuffOvr                        EQU        -1024                ;Buffer overflow in LookupName
  385. nbpNoConfirm                    EQU        -1025
  386. nbpConfDiff                        EQU        -1026                ;Name confirmed at different socket
  387. nbpDuplicate                    EQU        -1027                ;Duplicate name exists already
  388. nbpNotFound                        EQU        -1028                ;Name not found on remove
  389. nbpNISErr                        EQU        -1029                ;Error trying to open the NIS
  390. aspBadVersNum                    EQU        -1066                ;Server cannot support this ASP version
  391. aspBufTooSmall                    EQU        -1067                ;Buffer too small
  392. aspNoMoreSess                    EQU        -1068                ;No more sessions on server
  393. aspNoServers                    EQU        -1069                ;No servers at that address
  394. aspParamErr                        EQU        -1070                ;Parameter error
  395.  
  396. aspServerBusy                    EQU        -1071                ;Server cannot open another session
  397. aspSessClosed                    EQU        -1072                ;Session closed
  398. aspSizeErr                        EQU        -1073                ;Command block too big
  399. aspTooMany                        EQU        -1074                ;Too many clients (server error)
  400. aspNoAck                        EQU        -1075                ;No ack on attention request (server err)
  401. reqFailed                        EQU        -1096
  402. tooManyReqs                        EQU        -1097
  403. tooManySkts                        EQU        -1098
  404. badATPSkt                        EQU        -1099
  405. badBuffNum                        EQU        -1100
  406. noRelErr                        EQU        -1101
  407. cbNotFound                        EQU        -1102
  408. noSendResp                        EQU        -1103
  409. noDataArea                        EQU        -1104
  410. reqAborted                        EQU        -1105
  411.  
  412. ; ADSP Error Codes 
  413. ; driver control ioResults 
  414. errRefNum                        EQU        -1280                ; bad connection refNum 
  415. errAborted                        EQU        -1279                ; control call was aborted 
  416. errState                        EQU        -1278                ; bad connection state for this operation 
  417. errOpening                        EQU        -1277                ; open connection request failed 
  418. errAttention                    EQU        -1276                ; attention message too long 
  419. errFwdReset                        EQU        -1275                ; read terminated by forward reset 
  420. errDSPQueueSize                    EQU        -1274                ; DSP Read/Write Queue Too small 
  421. errOpenDenied                    EQU        -1273                ; open connection request was denied 
  422.  
  423. ;***    OSL ERROR CODES            ***
  424. errAEImpossibleRange            EQU        -1720                ; A range like 3rd to 2nd, or 1st to all. 
  425. errAEWrongNumberArgs            EQU        -1721                ; Logical op kAENOT used with other than 1 term 
  426. errAEAccessorNotFound            EQU        -1723                ; Accessor proc matching wantClass and containerType or wildcards not found 
  427. errAENoSuchLogical                EQU        -1725                ; Something other than AND, OR, or NOT 
  428. errAEBadTestKey                    EQU        -1726                ; Test is neither typeLogicalDescriptor nor typeCompDescriptor 
  429. errAENotAnObjSpec                EQU        -1727                ; Param to AEResolve not of type 'obj ' 
  430. errAENoSuchObject                EQU        -1728                ; e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error. 
  431. errAENegativeCount                EQU        -1729                ; CountProc returned negative value 
  432. errAEEmptyListContainer            EQU        -1730                ; Attempt to pass empty list as container to accessor 
  433.  
  434. ;--------------------------------------------------------------
  435. ;        Apple event manager error messages
  436. ;--------------------------------------------------------------
  437. errAECoercionFail                EQU        -1700                ; bad parameter data or unable to coerce the data supplied 
  438. errAEDescNotFound                EQU        -1701
  439. errAECorruptData                EQU        -1702
  440. errAEWrongDataType                EQU        -1703
  441. errAENotAEDesc                    EQU        -1704
  442. errAEBadListItem                EQU        -1705                ; the specified list item does not exist 
  443. errAENewerVersion                EQU        -1706                ; need newer version of the AppleEvent manager 
  444. errAENotAppleEvent                EQU        -1707                ; the event is not in AppleEvent format 
  445. errAEEventNotHandled            EQU        -1708                ; the AppleEvent was not handled by any handler 
  446. errAEReplyNotValid                EQU        -1709                ; AEResetTimer was passed an invalid reply parameter 
  447. errAEUnknownSendMode            EQU        -1710                ; mode wasn't NoReply, WaitReply, or QueueReply or Interaction level is unknown 
  448. errAEWaitCanceled                EQU        -1711                ; in AESend, the user cancelled out of wait loop for reply or receipt 
  449. errAETimeout                    EQU        -1712                ; the AppleEvent timed out 
  450. errAENoUserInteraction            EQU        -1713                ; no user interaction is allowed 
  451. errAENotASpecialFunction        EQU        -1714                ; there is no special function for/with this keyword 
  452. errAEParamMissed                EQU        -1715                ; a required parameter was not accessed 
  453. errAEUnknownAddressType            EQU        -1716                ; the target address type is not known 
  454. errAEHandlerNotFound            EQU        -1717                ; no handler in the dispatch tables fits the parameters to AEGetEventHandler or AEGetCoercionHandler 
  455. errAEReplyNotArrived            EQU        -1718                ; the contents of the reply you are accessing have not arrived yet 
  456. errAEIllegalIndex                EQU        -1719                ; index is out of range in a put operation 
  457. errAEUnknownObjectType            EQU        -1731                ; available only in version 1.0.1 or greater 
  458. errAERecordingIsAlreadyOn        EQU        -1732                ; available only in version 1.0.1 or greater 
  459.  
  460. ;*************************************************************************
  461. ;    API Errors
  462. ;*************************************************************************
  463. errOSASystemError                EQU        -1750
  464. errOSAInvalidID                    EQU        -1751
  465. errOSABadStorageType            EQU        -1752
  466. errOSAScriptError                EQU        -1753
  467. errOSABadSelector                EQU        -1754
  468. errOSASourceNotAvailable        EQU        -1756
  469. errOSANoSuchDialect                EQU        -1757
  470. errOSADataFormatObsolete        EQU        -1758
  471. errOSADataFormatTooNew            EQU        -1759
  472. errOSACorruptData                EQU        errAECorruptData
  473. errOSARecordingIsAlreadyOn        EQU        errAERecordingIsAlreadyOn
  474. errOSAComponentMismatch            EQU        -1761                ; Parameters are from 2 different components 
  475. errOSACantOpenComponent            EQU        -1762                ; Can't connect to scripting system with that ID 
  476.  
  477. ;QuickTime errors
  478. couldNotResolveDataRef            EQU        -2000
  479. badImageDescription                EQU        -2001
  480. badPublicMovieAtom                EQU        -2002
  481. cantFindHandler                    EQU        -2003
  482. cantOpenHandler                    EQU        -2004
  483. badComponentType                EQU        -2005
  484. noMediaHandler                    EQU        -2006
  485. noDataHandler                    EQU        -2007
  486. invalidMedia                    EQU        -2008
  487. invalidTrack                    EQU        -2009
  488. invalidMovie                    EQU        -2010
  489. invalidSampleTable                EQU        -2011
  490. invalidDataRef                    EQU        -2012
  491. invalidHandler                    EQU        -2013
  492. invalidDuration                    EQU        -2014
  493. invalidTime                        EQU        -2015
  494. cantPutPublicMovieAtom            EQU        -2016
  495. badEditList                        EQU        -2017
  496. mediaTypesDontMatch                EQU        -2018
  497. progressProcAborted                EQU        -2019
  498. movieToolboxUninitialized        EQU        -2020
  499. noRecordOfApp                    EQU        movieToolboxUninitialized ; replica 
  500. wfFileNotFound                    EQU        -2021
  501. cantCreateSingleForkFile        EQU        -2022                ; happens when file already exists 
  502. invalidEditState                EQU        -2023
  503. nonMatchingEditState            EQU        -2024
  504. staleEditState                    EQU        -2025
  505. userDataItemNotFound            EQU        -2026
  506. maxSizeToGrowTooSmall            EQU        -2027
  507. badTrackIndex                    EQU        -2028
  508. trackIDNotFound                    EQU        -2029
  509. trackNotInMovie                    EQU        -2030
  510. timeNotInTrack                    EQU        -2031
  511. timeNotInMedia                    EQU        -2032
  512. badEditIndex                    EQU        -2033
  513. internalQuickTimeError            EQU        -2034
  514. cantEnableTrack                    EQU        -2035
  515. invalidRect                        EQU        -2036
  516. invalidSampleNum                EQU        -2037
  517. invalidChunkNum                    EQU        -2038
  518. invalidSampleDescIndex            EQU        -2039
  519. invalidChunkCache                EQU        -2040
  520. invalidSampleDescription        EQU        -2041
  521. dataNotOpenForRead                EQU        -2042
  522. dataNotOpenForWrite                EQU        -2043
  523. dataAlreadyOpenForWrite            EQU        -2044
  524. dataAlreadyClosed                EQU        -2045
  525. endOfDataReached                EQU        -2046
  526. dataNoDataRef                    EQU        -2047
  527. noMovieFound                    EQU        -2048
  528. invalidDataRefContainer            EQU        -2049
  529. badDataRefIndex                    EQU        -2050
  530. noDefaultDataRef                EQU        -2051
  531. couldNotUseAnExistingSample        EQU        -2052
  532. featureUnsupported                EQU        -2053
  533. noVideoTrackInMovieErr            EQU        -2054                ; QT for Windows error 
  534. noSoundTrackInMovieErr            EQU        -2055                ; QT for Windows error 
  535. soundSupportNotAvailableErr        EQU        -2056                ; QT for Windows error 
  536. unsupportedAuxiliaryImportData    EQU        -2057
  537. auxiliaryExportDataUnavailable    EQU        -2058
  538. samplesAlreadyInMediaErr        EQU        -2059
  539. movieTextNotFoundErr            EQU        -2062
  540.  
  541. digiUnimpErr                    EQU        -2201                ; feature unimplemented 
  542. qtParamErr                        EQU        -2202                ; bad input parameter (out of range, etc) 
  543. matrixErr                        EQU        -2203                ; bad matrix, digitizer did nothing 
  544. notExactMatrixErr                EQU        -2204                ; warning of bad matrix, digitizer did its best 
  545. noMoreKeyColorsErr                EQU        -2205                ; all key indexes in use 
  546. notExactSizeErr                    EQU        -2206                ; Can’t do exact size requested 
  547. badDepthErr                        EQU        -2207                ; Can’t digitize into this depth 
  548. noDMAErr                        EQU        -2208                ; Can’t do DMA digitizing (i.e. can't go to requested dest 
  549. badCallOrderErr                    EQU        -2209                ; Usually due to a status call being called prior to being setup first 
  550.  
  551. ;*************************************************************************
  552. ;    Script Error Codes
  553. ;*************************************************************************
  554. ; Runtime errors: 
  555. errASCantConsiderAndIgnore        EQU        -2720
  556. errASCantCompareMoreThan32k        EQU        -2721
  557. ; Parser/Compiler errors: 
  558. errASTerminologyNestingTooDeep    EQU        -2760
  559. errASIllegalFormalParameter        EQU        -2761
  560. errASParameterNotForEvent        EQU        -2762
  561. errASNoResultReturned            EQU        -2763
  562. ;     Dialect specific script errors:
  563. ;     The range -2780 thru -2799 is reserved for dialect specific error codes.
  564. ;     (Error codes from different dialects may overlap.)
  565. ;
  566. ;    English errors:
  567. ;
  568. errASInconsistentNames            EQU        -2780
  569.  
  570. ;Component Manager & component errors
  571. invalidComponentID                EQU        -3000
  572. validInstancesExist                EQU        -3001
  573. componentNotCaptured            EQU        -3002
  574. componentDontRegister            EQU        -3003
  575.  
  576. ; Color Picker errors
  577. firstPickerError                EQU        -4000
  578. invalidPickerType                EQU        firstPickerError
  579. requiredFlagsDontMatch            EQU        -4001
  580. pickerResourceError                EQU        -4002
  581. cantLoadPicker                    EQU        -4003
  582. cantCreatePickerWindow            EQU        -4004
  583. cantLoadPackage                    EQU        -4005
  584. pickerCantLive                    EQU        -4006
  585. colorSyncNotInstalled            EQU        -4007
  586. badProfileError                    EQU        -4008
  587. noHelpForItem                    EQU        -4009
  588.  
  589. codecErr                        EQU        -8960
  590. noCodecErr                        EQU        -8961
  591. codecUnimpErr                    EQU        -8962
  592. codecSizeErr                    EQU        -8963
  593. codecScreenBufErr                EQU        -8964
  594. codecImageBufErr                EQU        -8965
  595. codecSpoolErr                    EQU        -8966
  596. codecAbortErr                    EQU        -8967
  597. codecWouldOffscreenErr            EQU        -8968
  598. codecBadDataErr                    EQU        -8969
  599. codecDataVersErr                EQU        -8970
  600. codecExtensionNotFoundErr        EQU        -8971
  601. scTypeNotFoundErr                EQU        codecExtensionNotFoundErr
  602. codecConditionErr                EQU        -8972
  603. codecOpenErr                    EQU        -8973
  604. codecCantWhenErr                EQU        -8974
  605. codecCantQueueErr                EQU        -8975
  606. codecNothingToBlitErr            EQU        -8976
  607. noDeviceForChannel                EQU        -9400
  608. grabTimeComplete                EQU        -9401
  609. cantDoThatInCurrentMode            EQU        -9402
  610. notEnoughMemoryToGrab            EQU        -9403
  611. notEnoughDiskSpaceToGrab        EQU        -9404
  612. couldntGetRequiredComponent        EQU        -9405
  613. badSGChannel                    EQU        -9406
  614. seqGrabInfoNotAvailable            EQU        -9407
  615. deviceCantMeetRequest            EQU        -9408
  616. badControllerHeight                EQU        -9994
  617. editingNotAllowed                EQU        -9995
  618. controllerBoundsNotExact        EQU        -9996
  619. cannotSetWidthOfAttachedController EQU        -9997
  620. controllerHasFixedHeight        EQU        -9998
  621. cannotMoveAttachedController    EQU        -9999
  622.  
  623. ; AERegistry Errors 
  624. errAEBadKeyForm                    EQU        -10002
  625. errAECantHandleClass            EQU        -10010
  626. errAECantSupplyType                EQU        -10009
  627. errAECantUndo                    EQU        -10015
  628. errAEEventFailed                EQU        -10000
  629. errAEIndexTooLarge                EQU        -10007
  630. errAEInTransaction                EQU        -10011
  631. errAELocalOnly                    EQU        -10016
  632. errAENoSuchTransaction            EQU        -10012
  633. errAENotAnElement                EQU        -10008
  634. errAENotASingleObject            EQU        -10014
  635. errAENotModifiable                EQU        -10003
  636. errAENoUserSelection            EQU        -10013
  637. errAEPrivilegeError                EQU        -10004
  638. errAEReadDenied                    EQU        -10005
  639. errAETypeError                    EQU        -10001
  640. errAEWriteDenied                EQU        -10006
  641.  
  642. ; TELErr 
  643. telGenericError                    EQU        -1
  644. telNoErr                        EQU        0
  645. telNoTools                        EQU        8                    ; no telephone tools found in extension folder 
  646. telBadTermErr                    EQU        -10001                ; invalid TELHandle or handle not found
  647. telBadDNErr                        EQU        -10002                ; TELDNHandle not found or invalid 
  648. telBadCAErr                        EQU        -10003                ; TELCAHandle not found or invalid 
  649. telBadHandErr                    EQU        -10004                ; bad handle specified 
  650. telBadProcErr                    EQU        -10005                ; bad msgProc specified 
  651. telCAUnavail                    EQU        -10006                ; a CA is not available 
  652. telNoMemErr                        EQU        -10007                ; no memory to allocate handle 
  653. telNoOpenErr                    EQU        -10008                ; unable to open terminal 
  654. telBadHTypeErr                    EQU        -10010                ; bad hook type specified 
  655. telHTypeNotSupp                    EQU        -10011                ; hook type not supported by this tool 
  656. telBadLevelErr                    EQU        -10012                ; bad volume level setting 
  657. telBadVTypeErr                    EQU        -10013                ; bad volume type error 
  658. telVTypeNotSupp                    EQU        -10014                ; volume type not supported by this tool
  659. telBadAPattErr                    EQU        -10015                ; bad alerting pattern specified 
  660. telAPattNotSupp                    EQU        -10016                ; alerting pattern not supported by tool
  661. telBadIndex                        EQU        -10017                ; bad index specified 
  662. telIndexNotSupp                    EQU        -10018                ; index not supported by this tool 
  663. telBadStateErr                    EQU        -10019                ; bad device state specified 
  664. telStateNotSupp                    EQU        -10020                ; device state not supported by tool 
  665. telBadIntExt                    EQU        -10021                ; bad internal external error 
  666. telIntExtNotSupp                EQU        -10022                ; internal external type not supported by this tool 
  667. telBadDNDType                    EQU        -10023                ; bad DND type specified 
  668. telDNDTypeNotSupp                EQU        -10024                ; DND type is not supported by this tool 
  669. telFeatNotSub                    EQU        -10030                ; feature not subscribed 
  670. telFeatNotAvail                    EQU        -10031                ; feature subscribed but not available 
  671. telFeatActive                    EQU        -10032                ; feature already active 
  672. telFeatNotSupp                    EQU        -10033                ; feature program call not supported by this tool 
  673. telConfLimitErr                    EQU        -10040                ; limit specified is too high for this configuration 
  674. telConfNoLimit                    EQU        -10041                ; no limit was specified but required
  675. telConfErr                        EQU        -10042                ; conference was not prepared 
  676. telConfRej                        EQU        -10043                ; conference request was rejected 
  677. telTransferErr                    EQU        -10044                ; transfer not prepared 
  678. telTransferRej                    EQU        -10045                ; transfer request rejected 
  679. telCBErr                        EQU        -10046                ; call back feature not set previously 
  680. telConfLimitExceeded            EQU        -10047                ; attempt to exceed switch conference limits 
  681. telBadDNType                    EQU        -10050                ; DN type invalid 
  682. telBadPageID                    EQU        -10051                ; bad page ID specified
  683. telBadIntercomID                EQU        -10052                ; bad intercom ID specified 
  684. telBadFeatureID                    EQU        -10053                ; bad feature ID specified 
  685. telBadFwdType                    EQU        -10054                ; bad fwdType specified 
  686. telBadPickupGroupID                EQU        -10055                ; bad pickup group ID specified 
  687. telBadParkID                    EQU        -10056                ; bad park id specified 
  688. telBadSelect                    EQU        -10057                ; unable to select or deselect DN 
  689. telBadBearerType                EQU        -10058                ; bad bearerType specified 
  690. telBadRate                        EQU        -10059                ; bad rate specified 
  691. telDNTypeNotSupp                EQU        -10060                ; DN type not supported by tool 
  692. telFwdTypeNotSupp                EQU        -10061                ; forward type not supported by tool 
  693. telBadDisplayMode                EQU        -10062                ; bad display mode specified 
  694. telDisplayModeNotSupp            EQU        -10063                ; display mode not supported by tool 
  695. telNoCallbackRef                EQU        -10064                ; no call back reference was specified, but is required 
  696. telAlreadyOpen                    EQU        -10070                ; terminal already open 
  697. telStillNeeded                    EQU        -10071                ; terminal driver still needed by someone else 
  698. telTermNotOpen                    EQU        -10072                ; terminal not opened via TELOpenTerm 
  699. telCANotAcceptable                EQU        -10080                ; CA not "acceptable" 
  700. telCANotRejectable                EQU        -10081                ; CA not "rejectable" 
  701. telCANotDeflectable                EQU        -10082                ; CA not "deflectable" 
  702. telPBErr                        EQU        -10090                ; parameter block error, bad format 
  703. telBadFunction                    EQU        -10091                ; bad msgCode specified 
  704. ;    telNoTools            = -10101,           unable to find any telephone tools 
  705. telNoSuchTool                    EQU        -10102                ; unable to find tool with name specified 
  706. telUnknownErr                    EQU        -10103                ; unable to set config 
  707. telNoCommFolder                    EQU        -10106                ; Communications/Extensions ƒ not found 
  708. telInitFailed                    EQU        -10107                ; initialization failed 
  709. telBadCodeResource                EQU        (-10108)            ; code resource not found 
  710. telDeviceNotFound                EQU        (-10109)            ; crmTelephoneDevice not found 
  711. telBadProcID                    EQU        (-10110)            ; invalid procID 
  712. telValidateFailed                EQU        (-10111)            ; telValidate failed 
  713. telAutoAnsNotOn                    EQU        (-10112)            ; autoAnswer in not turned on 
  714. telDTMFDetAlreadyOn                EQU        (-10113)            ; dtmf detection is already turned on 
  715.  
  716. badComponentInstance            EQU        $80008001
  717. badComponentSelector            EQU        $80008002
  718.  
  719. ;Translation manager & Translation components
  720. invalidTranslationPathErr        EQU        -3025                ;Source type to destination type not a valid path
  721. couldNotParseSourceFileErr        EQU        -3026                ;Source document does not contain source type
  722. noTranslationPathErr            EQU        -3030
  723. badTranslationSpecErr            EQU        -3031
  724. noPrefAppErr                    EQU        -3032
  725.  
  726. buf2SmallErr                    EQU        -3101
  727. noMPPErr                        EQU        -3102
  728. ckSumErr                        EQU        -3103
  729. extractErr                        EQU        -3104
  730. readQErr                        EQU        -3105
  731. atpLenErr                        EQU        -3106
  732. atpBadRsp                        EQU        -3107
  733. recNotFnd                        EQU        -3108
  734. sktClosedErr                    EQU        -3109
  735. afpAccessDenied                    EQU        -5000
  736. afpAuthContinue                    EQU        -5001
  737. afpBadUAM                        EQU        -5002
  738. afpBadVersNum                    EQU        -5003
  739. afpBitmapErr                    EQU        -5004
  740. afpCantMove                        EQU        -5005
  741. afpDenyConflict                    EQU        -5006
  742. afpDirNotEmpty                    EQU        -5007
  743. afpDiskFull                        EQU        -5008
  744. afpEofError                        EQU        -5009
  745. afpFileBusy                        EQU        -5010
  746. afpFlatVol                        EQU        -5011
  747. afpItemNotFound                    EQU        -5012
  748. afpLockErr                        EQU        -5013
  749. afpMiscErr                        EQU        -5014
  750. afpNoMoreLocks                    EQU        -5015
  751.  
  752. afpNoServer                        EQU        -5016
  753. afpObjectExists                    EQU        -5017
  754. afpObjectNotFound                EQU        -5018
  755. afpParmErr                        EQU        -5019
  756. afpRangeNotLocked                EQU        -5020
  757. afpRangeOverlap                    EQU        -5021
  758. afpSessClosed                    EQU        -5022
  759. afpUserNotAuth                    EQU        -5023
  760. afpCallNotSupported                EQU        -5024
  761. afpObjectTypeErr                EQU        -5025
  762. afpTooManyFilesOpen                EQU        -5026
  763. afpServerGoingDown                EQU        -5027
  764. afpCantRename                    EQU        -5028
  765. afpDirNotFound                    EQU        -5029
  766. afpIconTypeError                EQU        -5030
  767. afpVolLocked                    EQU        -5031                ;Volume is Read-Only
  768. afpObjectLocked                    EQU        -5032                ;Object is M/R/D/W inhibited
  769. afpContainsSharedErr            EQU        -5033                ;the folder being shared contains a shared folder
  770. afpIDNotFound                    EQU        -5034
  771. afpIDExists                        EQU        -5035
  772.  
  773. afpDiffVolErr                    EQU        -5036
  774. afpCatalogChanged                EQU        -5037
  775. afpSameObjectErr                EQU        -5038
  776. afpBadIDErr                        EQU        -5039
  777. afpPwdSameErr                    EQU        -5040                ;someone tried to change their password to the same password on a mantadory password change
  778. afpPwdTooShortErr                EQU        -5041                ;the password being set is too short: there is a minimum length that must be met or exceeded
  779. afpPwdExpiredErr                EQU        -5042                ;the password being used is too old: this requires the user to change the password before log-in can continue
  780. afpInsideSharedErr                EQU        -5043                ;the folder being shared is inside a shared folder OR the folder contains a shared folder and is being moved into a shared folder OR the folder contains a shared folder and is being moved into the descendent of a shared folder.
  781. afpInsideTrashErr                EQU        -5044                ;the folder being shared is inside the trash folder OR the shared folder is being moved into the trash folder OR the folder is being moved to the trash and it contains a shared folder
  782. ;Display Manager error codes (-6220...-6269)
  783. kDMGenErr                        EQU        -6220                ;Unexpected Error
  784. ; Mirroring-Specific Errors 
  785. kDMMirroringOnAlready            EQU        -6221                ;Returned by all calls that need mirroring to be off to do their thing.
  786. kDMWrongNumberOfDisplays        EQU        -6222                ;Can only handle 2 displays for now.
  787. kDMMirroringBlocked                EQU        -6223                ;DMBlockMirroring() has been called.
  788. kDMCantBlock                    EQU        -6224                ;Mirroring is already on, can’t Block now (call DMUnMirror() first).
  789. kDMMirroringNotOn                EQU        -6225                ;Returned by all calls that need mirroring to be on to do their thing.
  790. ; Other Display Manager Errors 
  791. kSysSWTooOld                    EQU        -6226                ;Missing critical pieces of System Software.
  792. kDMSWNotInitializedErr            EQU        -6227                ;Required software not initialized (eg windowmanager or display mgr).
  793. kDMDriverNotDisplayMgrAwareErr    EQU        -6228                ;Video Driver does not support display manager.
  794. kDMDisplayNotFoundErr            EQU        -6229                ;Could not find item.
  795. kDMDisplayAlreadyInstalledErr    EQU        -6230                ;Attempt to add an already installed display.
  796. kDMNoDeviceTableclothErr        EQU        -6231                ;DMGetGDeviceTablecloth with no tablecloth installed
  797. ;Gestalt error codes
  798. gestaltUnknownErr                EQU        -5550                ;value returned if Gestalt doesn't know the answer
  799. gestaltUndefSelectorErr            EQU        -5551                ;undefined selector was passed to Gestalt
  800. gestaltDupSelectorErr            EQU        -5552                ;tried to add an entry that already existed
  801. gestaltLocationErr                EQU        -5553                ;gestalt function ptr wasn't in sysheap
  802. ;PPC errors
  803. notInitErr                        EQU        -900                ;PPCToolBox not initialized
  804. nameTypeErr                        EQU        -902                ;Invalid or inappropriate locationKindSelector in locationName
  805. noPortErr                        EQU        -903                ;Unable to open port or bad portRefNum
  806. noGlobalsErr                    EQU        -904                ;The system is hosed, better re-boot
  807. localOnlyErr                    EQU        -905                ;Network activity is currently disabled
  808. destPortErr                        EQU        -906                ;Port does not exist at destination
  809. sessTableErr                    EQU        -907                ;Out of session tables, try again later
  810. noSessionErr                    EQU        -908                ;Invalid session reference number
  811. badReqErr                        EQU        -909                ;bad parameter or invalid state for operation
  812. portNameExistsErr                EQU        -910                ;port is already open (perhaps in another app)
  813. noUserNameErr                    EQU        -911                ;user name unknown on destination machine
  814.  
  815. userRejectErr                    EQU        -912                ;Destination rejected the session request
  816. noMachineNameErr                EQU        -913                ;user hasn't named his Macintosh in the Network Setup Control Panel
  817. noToolboxNameErr                EQU        -914                ;A system resource is missing, not too likely
  818. noResponseErr                    EQU        -915                ;unable to contact destination
  819. portClosedErr                    EQU        -916                ;port was closed
  820. sessClosedErr                    EQU        -917                ;session was closed
  821. badPortNameErr                    EQU        -919                ;PPCPortRec malformed
  822. noDefaultUserErr                EQU        -922                ;user hasn't typed in owners name in Network Setup Control Pannel
  823. notLoggedInErr                    EQU        -923                ;The default userRefNum does not yet exist
  824. noUserRefErr                    EQU        -924                ;unable to create a new userRefNum
  825. networkErr                        EQU        -925                ;An error has occured in the network, not too likely
  826. noInformErr                        EQU        -926                ;PPCStart failed because destination did not have inform pending
  827. authFailErr                        EQU        -927                ;unable to authenticate user at destination
  828. noUserRecErr                    EQU        -928                ;Invalid user reference number
  829. badServiceMethodErr                EQU        -930                ;illegal service type, or not supported
  830. badLocNameErr                    EQU        -931                ;location name malformed
  831. guestNotAllowedErr                EQU        -932                ;destination port requires authentication
  832. noMaskFoundErr                    EQU        -1000                ;Icon Utilties Error
  833.  
  834. dsBusError                        EQU        1                    ;bus error
  835. dsAddressErr                    EQU        2                    ;address error
  836. dsIllInstErr                    EQU        3                    ;illegal instruction error
  837. dsZeroDivErr                    EQU        4                    ;zero divide error
  838. dsChkErr                        EQU        5                    ;check trap error
  839. dsOvflowErr                        EQU        6                    ;overflow trap error
  840. dsPrivErr                        EQU        7                    ;privilege violation error
  841. dsTraceErr                        EQU        8                    ;trace mode error
  842. dsLineAErr                        EQU        9                    ;line 1010 trap error
  843. dsLineFErr                        EQU        10                    ;line 1111 trap error
  844. dsMiscErr                        EQU        11                    ;miscellaneous hardware exception error
  845. dsCoreErr                        EQU        12                    ;unimplemented core routine error
  846. dsIrqErr                        EQU        13                    ;uninstalled interrupt error
  847. dsIOCoreErr                        EQU        14                    ;IO Core Error
  848. dsLoadErr                        EQU        15                    ;Segment Loader Error
  849. dsFPErr                            EQU        16                    ;Floating point error
  850. dsNoPackErr                        EQU        17                    ;package 0 not present
  851. dsNoPk1                            EQU        18                    ;package 1 not present
  852. dsNoPk2                            EQU        19                    ;package 2 not present
  853.  
  854. dsNoPk3                            EQU        20                    ;package 3 not present
  855. dsNoPk4                            EQU        21                    ;package 4 not present
  856. dsNoPk5                            EQU        22                    ;package 5 not present
  857. dsNoPk6                            EQU        23                    ;package 6 not present
  858. dsNoPk7                            EQU        24                    ;package 7 not present
  859. dsMemFullErr                    EQU        25                    ;out of memory!
  860. dsBadLaunch                        EQU        26                    ;can't launch file
  861. dsFSErr                            EQU        27                    ;file system map has been trashed
  862. dsStknHeap                        EQU        28                    ;stack has moved into application heap
  863. negZcbFreeErr                    EQU        33                    ;ZcbFree has gone negative
  864. dsFinderErr                        EQU        41                    ;can't load the Finder error
  865. dsBadSlotInt                    EQU        51                    ;unserviceable slot interrupt
  866. dsBadSANEOpcode                    EQU        81                    ;bad opcode given to SANE Pack4
  867. dsBadPatchHeader                EQU        83                    ;SetTrapAddress saw the “come-from” header
  868. menuPrgErr                        EQU        84                    ;happens when a menu is purged
  869. dsMBarNFnd                        EQU        85                    ;Menu Manager Errors
  870. dsHMenuFindErr                    EQU        86                    ;Menu Manager Errors
  871. dsWDEFNotFound                    EQU        87                    ;could not load WDEF
  872. dsCDEFNotFound                    EQU        88                    ;could not load CDEF
  873. dsMDEFNotFound                    EQU        89                    ;could not load MDEF
  874.  
  875. dsNoFPU                            EQU        90                    ;an FPU instruction was executed and the machine doesn’t have one
  876. dsNoPatch                        EQU        98                    ;Can't patch for particular Model Mac
  877. dsBadPatch                        EQU        99                    ;Can't load patch resource
  878. dsParityErr                        EQU        101                    ;memory parity error
  879. dsOldSystem                        EQU        102                    ;System is too old for this ROM
  880. ds32BitMode                        EQU        103                    ;booting in 32-bit on a 24-bit sys
  881. dsNeedToWriteBootBlocks            EQU        104                    ;need to write new boot blocks
  882. dsNotEnoughRAMToBoot            EQU        105                    ;must have at least 1.5MB of RAM to boot 7.0
  883. dsBufPtrTooLow                    EQU        106                    ;bufPtr moved too far during boot
  884. dsReinsert                        EQU        30                    ;request user to reinsert off-line volume
  885. shutDownAlert                    EQU        42                    ;handled like a shutdown error
  886. dsShutDownOrRestart                EQU        20000                ;user choice between ShutDown and Restart
  887. dsSwitchOffOrRestart            EQU        20001                ;user choice between switching off and Restart
  888. dsForcedQuit                    EQU        20002                ;allow the user to ExitToShell, return if Cancel
  889. ;System Errors that are used after MacsBug is loaded to put up dialogs since these should not cause MacsBug to stop, they must be in the range (30, 42, 16384-32767) negative numbers add to an existing dialog without putting up a whole new dialog
  890. dsMacsBugInstalled                EQU        -10                    ;say “MacsBug Installed”
  891. dsDisassemblerInstalled            EQU        -11                    ;say “Disassembler Installed”
  892. dsExtensionsDisabled            EQU        -13                    ;say “Extensions Disabled”
  893. dsGreeting                        EQU        40                    ;welcome to Macintosh greeting
  894. dsSysErr                        EQU        32767                ;general system error
  895. ;old names here for compatibility’s sake
  896. WDEFNFnd                        EQU        dsWDEFNotFound
  897.  
  898. CDEFNFnd                        EQU        dsCDEFNotFound
  899. dsNotThe1                        EQU        31                    ;not the disk I wanted
  900. dsBadStartupDisk                EQU        42                    ;unable to mount boot volume (sad Mac only)
  901. dsSystemFileErr                    EQU        43                    ;can’t find System file to open (sad Mac only)
  902. dsHD20Installed                    EQU        -12                    ;say “HD20 Startup”
  903. mBarNFnd                        EQU        -126                ;system error code for MBDF not found
  904. hMenuFindErr                    EQU        -127                ;could not find HMenu's parent in MenuKey
  905. userBreak                        EQU        -490                ;user debugger break
  906. strUserBreak                    EQU        -491                ;user debugger break; display string on stack
  907. exUserBreak                        EQU        -492                ;user debugger break; execute debugger commands on stack
  908.  
  909. ; CFM error codes 
  910. fragNoErr                        EQU        0
  911. fragContextNotFound                EQU        -2800                ; contextID was not valid 
  912. fragConnectionIDNotFound        EQU        -2801                ; connecionID was not valid 
  913. fragSymbolNotFound                EQU        -2802                ; symbol was not found in connection 
  914. fragSectionNotFound                EQU        -2803                ; section was not found 
  915. fragLibNotFound                    EQU        -2804                ; library name not found in Frag registry 
  916. fragDupRegLibName                EQU        -2805                ; registered name already in use 
  917. fragFormatUnknown                EQU        -2806                ; fragment container format unknown 
  918. fragHadUnresolveds                EQU        -2807                ; loaded fragment had "hard" unresolved imports 
  919. fragUnused1                        EQU        -2808                ; unused 
  920. fragNoMem                        EQU        -2809                ; out of memory for interal bookkeeping 
  921. fragNoAddrSpace                    EQU        -2810                ; out of memory in user's address space for loadable section 
  922. fragNoContextIDs                EQU        -2811                ; no more context id’s 
  923. fragObjectInitSeqErr            EQU        -2812                ; order error during user initialization function invocation 
  924. fragImportTooOld                EQU        -2813                ; import library was too old and therefore incompatible 
  925. fragImportTooNew                EQU        -2814                ; import library was too new and therefore incompatible 
  926. fragInitLoop                    EQU        -2815                ; circularity detected in mandatory initialization order 
  927. fragInitRtnUsageErr                EQU        -2816                ; boot library has initialization routine 
  928. fragLibConnErr                    EQU        -2817                ; error connecting to library (error occured in sub prepare) 
  929. fragMgrInitErr                    EQU        -2818                ; error in initailization of this manager 
  930. fragConstErr                    EQU        -2819                ; internal inconstistancy 
  931. fragCorruptErr                    EQU        -2820                ; fragment container corrupted (known format) 
  932. fragUserInitProcErr                EQU        -2821                ; user intialization routine did not return noErr 
  933. fragAppNotFound                    EQU        -2822                ; no application found in cfrg (for Process Manager) 
  934. fragArchError                    EQU        -2823                ; fragment targeted for an unacceptable architecture 
  935. fragInvalidFragmentUsage        EQU        -2824                ; ie: an application's main fragment had no entry point
  936. ;                                               - or - an accerated resource had no entry point,
  937. ;                                               or it had a termination routine, etc... 
  938. fragLastErrCode                    EQU        -2899                ; last reserved error code number 
  939.  
  940. ; Drag Manager error codes 
  941. badDragRefErr                    EQU        -1850                ; unknown drag reference 
  942. badDragItemErr                    EQU        -1851                ; unknown drag item reference 
  943. badDragFlavorErr                EQU        -1852                ; unknown flavor type 
  944. duplicateFlavorErr                EQU        -1853                ; flavor type already exists 
  945. cantGetFlavorErr                EQU        -1854                ; error while trying to get flavor data 
  946. duplicateHandlerErr                EQU        -1855                ; handler already exists 
  947. handlerNotFoundErr                EQU        -1856                ; handler not found 
  948. dragNotAcceptedErr                EQU        -1857                ; drag was not accepted by receiver 
  949.  
  950. ; Mixed Mode error codes 
  951. mmInternalError                    EQU        -2526
  952.  
  953. ; error codes 
  954. tsmComponentNoErr                EQU        0                    ; component result = no error 
  955. tsmUnsupScriptLanguageErr        EQU        -2500
  956. tsmInputMethodNotFoundErr        EQU        -2501
  957. tsmNotAnAppErr                    EQU        -2502                ; not an application error 
  958. tsmAlreadyRegisteredErr            EQU        -2503                ; want to register again error 
  959. tsmNeverRegisteredErr            EQU        -2504                ; app never registered error (not TSM aware) 
  960. tsmInvalidDocIDErr                EQU        -2505                ; invalid TSM documentation id 
  961. tsmTSMDocBusyErr                EQU        -2506                ; document is still active 
  962. tsmDocNotActiveErr                EQU        -2507                ; document is NOT active 
  963. tsmNoOpenTSErr                    EQU        -2508                ; no open text service 
  964. tsmCantOpenComponentErr            EQU        -2509                ; can’t open the component 
  965. tsmTextServiceNotFoundErr        EQU        -2510                ; no text service found 
  966. tsmDocumentOpenErr                EQU        -2511                ; there are open documents 
  967. tsmUseInputWindowErr            EQU        -2512                ; not TSM aware because we are using input window 
  968. tsmTSHasNoMenuErr                EQU        -2513                ; the text service has no menu 
  969. tsmTSNotOpenErr                    EQU        -2514                ; text service is not open 
  970. tsmComponentAlreadyOpenErr        EQU        -2515                ; text service already opened for the document 
  971. tsmInputMethodIsOldErr            EQU        -2516                ; returned by GetDefaultInputMethod 
  972. tsmScriptHasNoIMErr                EQU        -2517                ; script has no imput method or is using old IM 
  973. tsmUnsupportedTypeErr            EQU        -2518                ; unSupported interface type error 
  974. tsmUnknownErr                    EQU        -2519                ; any other errors 
  975.  
  976. ; AppleEvent error definitions 
  977. errOffsetInvalid                EQU        -1800
  978. errOffsetIsOutsideOfView        EQU        -1801
  979. errTopOfDocument                EQU        -1810
  980. errTopOfBody                    EQU        -1811
  981. errEndOfDocument                EQU        -1812
  982. errEndOfBody                    EQU        -1813
  983.  
  984. ; Database access error codes 
  985. rcDBNull                        EQU        -800
  986. rcDBValue                        EQU        -801
  987. rcDBError                        EQU        -802
  988. rcDBBadType                        EQU        -803
  989. rcDBBreak                        EQU        -804
  990. rcDBExec                        EQU        -805
  991. rcDBBadSessID                    EQU        -806
  992. rcDBBadSessNum                    EQU        -807                ; bad session number for DBGetConnInfo 
  993. rcDBBadDDEV                        EQU        -808                ; bad ddev specified on DBInit 
  994. rcDBAsyncNotSupp                EQU        -809                ; ddev does not support async calls 
  995. rcDBBadAsyncPB                    EQU        -810                ; tried to kill a bad pb 
  996. rcDBNoHandler                    EQU        -811                ; no app handler for specified data type 
  997. rcDBWrongVersion                EQU        -812                ; incompatible versions 
  998. rcDBPackNotInited                EQU        -813                ; attempt to call other routine before InitDBPack 
  999.  
  1000. ; ENET error codes 
  1001. eLenErr                            EQU        -92                    ;Length error ddpLenErr
  1002. eMultiErr                        EQU        -91                    ;Multicast address error ddpSktErr
  1003.  
  1004. ; DS Errors which are specific to the new runtime model introduced with PowerPC 
  1005. dsBadLibrary                    EQU        1010                ; Bad shared library 
  1006. dsMixedModeFailure                EQU        1011                ; Internal Mixed Mode Failure 
  1007.  
  1008.     IF GENERATING68K THEN
  1009.         _SysError:    OPWORD    $A9C9
  1010.     ELSE
  1011.         IMPORT    SysError
  1012.     ENDIF
  1013.  
  1014.     ENDIF ; __ERRORS__
  1015.